-
-
Notifications
You must be signed in to change notification settings - Fork 340
Docs - Starlight Refactoring #929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…e built-in version.
…mponent. Able to remove redundant SidebarSublist component.
@awhitford is attempting to deploy a commit to the OramaSearch Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@micheleriva Please let me know if you have any questions or concerns about this PR. Once merged, I will revisit the Astro and Starlight upgrade, but this will make things easier. |
I'm imaging this plugin will:
Is that right? @awhitford ? |
@Saif-Shines This PR simply includes some refactoring of how Starlight is used by Orama's Docs. This PR is helpful because it will then enable me to upgrade to a newer version of Astro and Starlight for Orama Docs. This does not impact Orama's Astro Plugin. However, I would like to make changes to that eventually -- but this PR was meant to be a step in that direction. Still patiently waiting after a month. |
In preparation for a Starlight upgrade, I discovered that there were several opportunities to simplify the custom components and avoid reimplementing built-in component logic so that long term maintenance is easier, and it benefits from future enhancements.
Hero
component because it did not seem to deviate from the built-in component.Footer
component to use the built-in component.Sidebar
component with a version that leverages the built-in component, and was able to remove the redundantSidebarSubList
component.Header
component in favor of simply overriding theSearch
component. (This maintains the Mobile menu.)TableOfContents
component to use the built-in component.There may be some slight cosmetic differences, but hopefully you will agree that this is easier to maintain and sets the project up to benefit from future enhancements, such as the
SidebarPersister
.